<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <#include "include/_meta.html">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>修改客户信息</title>

</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" id="form-admin-edit" >
        <input type="hidden" name="cid" id="cid" value="${aaa.cid}">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>信用值变化</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${(aaa.creditchange)!""}"  placeholder="例如+2" id="creditchange" name="creditchange">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>变化原因：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${(aaa.changereason)!""}"  placeholder="例如:正常租车" id="changereason" name="changereason">
            </div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" id="creditedit" type="button" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" />
            </div>
        </div>
    </form>
</article>


<#include "include/_footer.html">

<script type="text/javascript">
    $("#creditedit").click(function () {
        $.ajax({
            url:"/creditEdit",
            type:"POST",
            dataType:"JSON",
            data:$("#form-admin-edit").serialize(),
            success:function (data) {

                var index = parent.layer.getFrameIndex(window.name);
                parent.getCreditList();
                parent.layer.close(index);
            }
        })
    })
</script>
</body>